package com.btm.easymetadata.server.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public final class PrdCodeUtil {

    /**
     * 以时间随机生成prd编号
     */
    public static String buildCode() {
        Date now = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        String formattedDate = dateFormat.format(now);
        return "BI-" + formattedDate;
    }
}
